import axios from "~/axios";

export function getNotice(page) {
    return axios.get("/notice?page=" + page);
  }
  
export function createNotice(data) {
    return axios.post("/notice", data);
  }
  
export function updateNotice(id, data) {
    return axios.put(`/notice/${id}`, data);
  }
  
export function deleteNotice(id) {
    return axios.delete(`/notice/${id}`);
  }